package org.xmatch.agenda.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.validator.Email;
import org.hibernate.validator.Length;
import org.hibernate.validator.NotNull;
import org.xmatch.framework.entity.GenericEntity;

@Entity
@Table(name = "CLIENTES")
public class Cliente extends GenericEntity {

	private static final long serialVersionUID = 1156528708742210947L;

	@Column(name = "NOME")
	@Length(max = 40)
	@NotNull
	private String nome;

	@Column(name = "SOBRENOME")
	@Length(max = 40)
	@NotNull
	private String sobrenome;

	@Email
	@Column(name = "EMAIL")
	private String email;

	
	private String telefone;

	@Column(name = "NIF")
	private Long nif;

	public String getNome() {
		return nome;
	}

	public void setNome(String nome) {
		this.nome = nome;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getTelefone() {
		return telefone;
	}

	public void setTelefone(String telefones) {
		this.telefone = telefones;
	}

	public String getSobrenome() {
		return sobrenome;
	}

	public void setSobrenome(String sobrenome) {
		this.sobrenome = sobrenome;
	}

	public Long getNif() {
		return nif;
	}

	public void setNif(Long nif) {
		this.nif = nif;
	}

}
